package distriKub;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.image.BufferedImage;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.JTextPane;
import javax.swing.LayoutStyle;
import javax.swing.SwingConstants;

import javax.swing.WindowConstants;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class InfoPanel extends javax.swing.JFrame {
	
	Myself boundPlayer;
	RegPlayerPanel boundRegPlayerPanel;
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel infoPanel;
	private JScrollPane jScrollPane1;
	private JButton connectToServer;
	private JLabel lbl_ServerIpAddress;
	private JTextField serverIpAddressTextField;
	private JLabel lbl_systemMessages;
	private JTextField localIpAddressTextField;
	private JTextField gamePortTextField;
	private JLabel lbl_GamePort;
	private JLabel lbl_LocalIpAddress;
	private JTextField serverPortTextField;
	private JPasswordField passwordTextField;
	private JLabel jLabel2;
	private JTextField playerIdTextField;
	private JLabel jLabel1;
	private JButton jButton1;
	private JLabel lbl_chatPort;
	private JTextField chatPortTextField;
	@SuppressWarnings("unused")
	private JLabel lbl_Password;
	private JButton updateButton;
	private JLabel lbl_PlayerId;
	private JTextField screenName;
	private JLabel lbl_ScreenName;
	private JLabel lbl_ConnectionStatus;
	private JTextField connectionStatus;
	private JTextPane systemMessages;
	private JLabel lbl_infoPanelMain;

	/**
	* Auto-generated main method to display this JFrame
	*/
	
	public InfoPanel() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
			this.setTitle("DistriKub - Control Panel");
			this.setName("infoPanelFrame");
			BufferedImage image = null;
	        try {
	            image = ImageIO.read(this.getClass().getResource("/distriKub\\images\\appicon.png"));
	        } catch (IOException e) {
	            e.printStackTrace();
	        }
	        this.setIconImage(image);
			{
				infoPanel = new JPanel();
				getContentPane().add(infoPanel, BorderLayout.CENTER);
				GroupLayout infoPanelLayout = new GroupLayout((JComponent)infoPanel);
				infoPanel.setLayout(infoPanelLayout);
				infoPanel.setBackground(new java.awt.Color(225,251,172));
				infoPanel.setName("controlPanel");
				{
					lbl_infoPanelMain = new JLabel();
					lbl_infoPanelMain.setText("DistriKub Control Panel");
					lbl_infoPanelMain.setFont(new java.awt.Font("Tahoma",1,26));
					lbl_infoPanelMain.setForeground(new java.awt.Color(0,0,255));
					lbl_infoPanelMain.setName("controlPanelLabel");
				}
				{
					jScrollPane1 = new JScrollPane();
					jScrollPane1.setSize(949, 250);
					{
						systemMessages = new JTextPane();
						jScrollPane1.setViewportView(systemMessages);
						systemMessages.setEnabled(false);
						systemMessages.setFont(new java.awt.Font("Tahoma",0,14));
						systemMessages.setPreferredSize(new java.awt.Dimension(737, 145));
						systemMessages.setSize(737, 194);
					}
				}
				{
					jLabel2 = new JLabel();
					jLabel2.setText("Password :");
					jLabel2.setFont(new java.awt.Font("Tahoma",1,11));
				}
				{
					passwordTextField = new JPasswordField();
					passwordTextField.setHorizontalAlignment(SwingConstants.CENTER);
				}
				{
					jButton1 = new JButton();
					jButton1.setAction(registerButtonClicked);
					jButton1.setText("Register");
				}
				{
					updateButton = new JButton();
					updateButton.setAction(updateButtonClicked);
					updateButton.setText("Update");
				}
				{
					{
						connectionStatus = new JTextField();
						connectionStatus.setName("connectionStatusTextField");
						connectionStatus.setEnabled(false);
						connectionStatus.setHorizontalAlignment(SwingConstants.CENTER);
					}
					lbl_PlayerId = new JLabel();
					lbl_PlayerId.setText("Player ID :");
					lbl_PlayerId.setFont(new java.awt.Font("Tahoma",1,11));
				}
				{
					{
						connectToServer = new JButton();
						connectToServer.setText("Connect");
						connectToServer.setEnabled(false);
						connectToServer.setAction(connectButtonClicked);
					}
				}
				{
					lbl_ScreenName = new JLabel();
					lbl_ScreenName.setText("Screen Name :");
					lbl_ScreenName.setFont(new java.awt.Font("Tahoma",1,11));
					lbl_ScreenName.setName("lbl_ScreenName");
				}
				{
					screenName = new JTextField();
					lbl_ScreenName.setLabelFor(getScreenName());
					screenName.setName("screenNameTextField");
					screenName.setFont(new java.awt.Font("Tahoma",1,11));
					screenName.setForeground(new java.awt.Color(221,34,38));
					screenName.setHorizontalAlignment(SwingConstants.CENTER);
				}
				{
					lbl_LocalIpAddress = new JLabel();
					lbl_LocalIpAddress.setText("Local IP Address :");
					lbl_LocalIpAddress.setFont(new java.awt.Font("Tahoma",1,11));
					lbl_LocalIpAddress.setName("lbl_HostMachineInetAddress");
				}
				{
					localIpAddressTextField = new JTextField();
					localIpAddressTextField.setHorizontalAlignment(SwingConstants.CENTER);
					localIpAddressTextField.setEnabled(false);
					lbl_LocalIpAddress.setLabelFor(getLocalIpAddressTextField());
				}
				{
					lbl_GamePort = new JLabel();
					lbl_GamePort.setText("Game Port :");
					lbl_GamePort.setFont(new java.awt.Font("Tahoma",1,11));
					lbl_GamePort.setName("lbl_GamePort");
				}
				{
					gamePortTextField = new JTextField();
					gamePortTextField.setHorizontalAlignment(SwingConstants.CENTER);
					gamePortTextField.setEnabled(true);
					lbl_GamePort.setLabelFor(getGamePortTextField());
				}
				{
					lbl_systemMessages = new JLabel();
					lbl_systemMessages.setText("System Messages");
					lbl_systemMessages.setLabelFor(systemMessages);
					lbl_systemMessages.setFont(new java.awt.Font("Tahoma",1,11));
					lbl_systemMessages.setForeground(new java.awt.Color(0,128,192));
				}
				{
					lbl_ServerIpAddress = new JLabel();
					lbl_ServerIpAddress.setText("Server IP Address :");
					lbl_ServerIpAddress.setLabelFor(connectionStatus);
					lbl_ServerIpAddress.setFont(new java.awt.Font("Tahoma",1,11));
					lbl_ServerIpAddress.setName("serverIpAddressLabel");
				}
				{
					serverIpAddressTextField = new JTextField();
					serverIpAddressTextField.setSize(105, 21);
					serverIpAddressTextField.setHorizontalAlignment(SwingConstants.CENTER);
				}
				{
					lbl_ConnectionStatus = new JLabel();
					lbl_ConnectionStatus.setText("Connection Status :");
					lbl_ConnectionStatus.setFont(new java.awt.Font("Tahoma",1,11));
					lbl_ConnectionStatus.setName("lbl_ConnectionStatus");
					lbl_ConnectionStatus.setLabelFor(connectionStatus);
				}
				{
					jLabel1 = new JLabel();
					jLabel1.setText("Server Port :");
					jLabel1.setFont(new java.awt.Font("Tahoma",1,11));
				}
				{
					playerIdTextField = new JTextField();
					playerIdTextField.setHorizontalAlignment(SwingConstants.CENTER);
				}
				{
					serverPortTextField = new JTextField();
					serverPortTextField.setHorizontalAlignment(SwingConstants.CENTER);
					serverPortTextField.setText(""+ComRules.serverPort);
				}
				{
					chatPortTextField = new JTextField();
					chatPortTextField.setHorizontalAlignment(SwingConstants.CENTER);
					chatPortTextField.setEnabled(true);
				}
				{
					lbl_chatPort = new JLabel();
					lbl_chatPort.setText("Chat Port :");
					lbl_chatPort.setLabelFor(getGamePortTextField());
					lbl_chatPort.setFont(new java.awt.Font("Tahoma",1,11));
					lbl_chatPort.setName("chatPort");
				}
				infoPanelLayout.setHorizontalGroup(infoPanelLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(infoPanelLayout.createParallelGroup()
					    .addGroup(infoPanelLayout.createSequentialGroup()
					        .addComponent(jScrollPane1, GroupLayout.PREFERRED_SIZE, 740, GroupLayout.PREFERRED_SIZE)
					        .addGap(0, 0, Short.MAX_VALUE))
					    .addGroup(infoPanelLayout.createSequentialGroup()
					        .addGroup(infoPanelLayout.createParallelGroup()
					            .addComponent(lbl_ConnectionStatus, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 119, GroupLayout.PREFERRED_SIZE)
					            .addGroup(GroupLayout.Alignment.LEADING, infoPanelLayout.createSequentialGroup()
					                .addComponent(lbl_chatPort, GroupLayout.PREFERRED_SIZE, 71, GroupLayout.PREFERRED_SIZE)
					                .addGap(48))
					            .addGroup(GroupLayout.Alignment.LEADING, infoPanelLayout.createSequentialGroup()
					                .addComponent(lbl_PlayerId, GroupLayout.PREFERRED_SIZE, 113, GroupLayout.PREFERRED_SIZE)
					                .addGap(6))
					            .addGroup(GroupLayout.Alignment.LEADING, infoPanelLayout.createSequentialGroup()
					                .addGap(7)
					                .addComponent(jButton1, GroupLayout.PREFERRED_SIZE, 55, GroupLayout.PREFERRED_SIZE)
					                .addGap(57)))
					        .addGroup(infoPanelLayout.createParallelGroup()
					            .addGroup(infoPanelLayout.createSequentialGroup()
					                .addGroup(infoPanelLayout.createParallelGroup()
					                    .addComponent(chatPortTextField, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 105, GroupLayout.PREFERRED_SIZE)
					                    .addComponent(connectionStatus, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 105, GroupLayout.PREFERRED_SIZE)
					                    .addComponent(playerIdTextField, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 105, GroupLayout.PREFERRED_SIZE))
					                .addGap(25)
					                .addGroup(infoPanelLayout.createParallelGroup()
					                    .addGroup(infoPanelLayout.createSequentialGroup()
					                        .addGroup(infoPanelLayout.createParallelGroup()
					                            .addComponent(lbl_ScreenName, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 119, GroupLayout.PREFERRED_SIZE)
					                            .addGroup(GroupLayout.Alignment.LEADING, infoPanelLayout.createSequentialGroup()
					                                .addComponent(lbl_ServerIpAddress, GroupLayout.PREFERRED_SIZE, 113, GroupLayout.PREFERRED_SIZE)
					                                .addGap(6))
					                            .addGroup(GroupLayout.Alignment.LEADING, infoPanelLayout.createSequentialGroup()
					                                .addComponent(lbl_GamePort, GroupLayout.PREFERRED_SIZE, 71, GroupLayout.PREFERRED_SIZE)
					                                .addGap(48)))
					                        .addGroup(infoPanelLayout.createParallelGroup()
					                            .addComponent(screenName, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 105, GroupLayout.PREFERRED_SIZE)
					                            .addComponent(serverIpAddressTextField, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 105, GroupLayout.PREFERRED_SIZE)
					                            .addComponent(gamePortTextField, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 105, GroupLayout.PREFERRED_SIZE)))
					                    .addGroup(GroupLayout.Alignment.LEADING, infoPanelLayout.createSequentialGroup()
					                        .addGap(37)
					                        .addComponent(lbl_systemMessages, GroupLayout.PREFERRED_SIZE, 111, GroupLayout.PREFERRED_SIZE)
					                        .addGap(76)))
					                .addGap(22)
					                .addGroup(infoPanelLayout.createParallelGroup()
					                    .addGroup(GroupLayout.Alignment.LEADING, infoPanelLayout.createSequentialGroup()
					                        .addGroup(infoPanelLayout.createParallelGroup()
					                            .addComponent(lbl_LocalIpAddress, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 107, GroupLayout.PREFERRED_SIZE)
					                            .addGroup(GroupLayout.Alignment.LEADING, infoPanelLayout.createSequentialGroup()
					                                .addComponent(jLabel2, GroupLayout.PREFERRED_SIZE, 69, GroupLayout.PREFERRED_SIZE)
					                                .addGap(38)))
					                        .addComponent(connectToServer, GroupLayout.PREFERRED_SIZE, 55, GroupLayout.PREFERRED_SIZE)
					                        .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
					                        .addComponent(updateButton, GroupLayout.PREFERRED_SIZE, 55, GroupLayout.PREFERRED_SIZE)
					                        .addGap(0, 8, Short.MAX_VALUE))
					                    .addGroup(GroupLayout.Alignment.LEADING, infoPanelLayout.createSequentialGroup()
					                        .addComponent(jLabel1, GroupLayout.PREFERRED_SIZE, 113, GroupLayout.PREFERRED_SIZE)
					                        .addGap(18)
					                        .addGroup(infoPanelLayout.createParallelGroup()
					                            .addGroup(infoPanelLayout.createSequentialGroup()
					                                .addComponent(passwordTextField, GroupLayout.PREFERRED_SIZE, 105, GroupLayout.PREFERRED_SIZE))
					                            .addGroup(infoPanelLayout.createSequentialGroup()
					                                .addComponent(localIpAddressTextField, GroupLayout.PREFERRED_SIZE, 105, GroupLayout.PREFERRED_SIZE))
					                            .addGroup(infoPanelLayout.createSequentialGroup()
					                                .addComponent(serverPortTextField, GroupLayout.PREFERRED_SIZE, 105, GroupLayout.PREFERRED_SIZE)))
					                        .addGap(0, 0, Short.MAX_VALUE))))
					            .addGroup(GroupLayout.Alignment.LEADING, infoPanelLayout.createSequentialGroup()
					                .addGap(95)
					                .addComponent(lbl_infoPanelMain, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					                .addGap(0, 210, Short.MAX_VALUE)))
					        .addGap(9)))
					.addContainerGap(21, 21));
				infoPanelLayout.setVerticalGroup(infoPanelLayout.createSequentialGroup()
					.addContainerGap()
					.addComponent(lbl_infoPanelMain, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					.addGap(19)
					.addGroup(infoPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					    .addComponent(localIpAddressTextField, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(lbl_LocalIpAddress, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(serverIpAddressTextField, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(lbl_ServerIpAddress, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(connectionStatus, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(lbl_ConnectionStatus, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
					.addGroup(infoPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					    .addComponent(serverPortTextField, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(jLabel1, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(chatPortTextField, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(lbl_chatPort, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(gamePortTextField, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(lbl_GamePort, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
					.addGroup(infoPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					    .addComponent(passwordTextField, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(jLabel2, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(screenName, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(lbl_ScreenName, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(playerIdTextField, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(lbl_PlayerId, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
					.addGap(74)
					.addGroup(infoPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
					    .addComponent(connectToServer, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(updateButton, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(lbl_systemMessages, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
					    .addComponent(jButton1, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
					.addComponent(jScrollPane1, GroupLayout.PREFERRED_SIZE, 146, GroupLayout.PREFERRED_SIZE)
					.addContainerGap(51, Short.MAX_VALUE));
			}
			pack();
			this.setSize(789, 473);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	
	public void bindToPlayer(Myself thePlayer){
		this.boundPlayer = thePlayer;
	}
	
	public void bindToRegPlayerPanel(RegPlayerPanel theRegPanel){
		this.boundRegPlayerPanel = theRegPanel;
	}
	
	public JPanel getInfoPanel() {
		return infoPanel;
	}
	
	public JTextPane getSystemMessages() {
		return systemMessages;
	}
	
	public JTextField getConnectionStatus() {
		return connectionStatus;
	}
	
	public JTextField getScreenName() {
		return screenName;
	}
	
	public JTextField getLocalIpAddressTextField() {
		return localIpAddressTextField;
	}
	
	public JTextField getGamePortTextField() {
		return gamePortTextField;
	}
	
	public JLabel getLbl_systemMessages() {
		return lbl_systemMessages;
	}
	
	public JTextField getServerIpAddressTextField() {
		return serverIpAddressTextField;
	}
	
	public JButton getConnectToServer() {
		return connectToServer;
	}
	
	// Start of custom methods
	
	public void displaySystemMessage(String systemMessage) {
		systemMessages.setText(systemMessages.getText() + "\n" + systemMessage);
		systemMessages.selectAll();
	}
	
	public void setConnectionStatus(boolean isConnected) {
		if (isConnected) {
			connectionStatus.setBackground(Color.green);
			connectionStatus.setText("Connected");
		} else {
			connectionStatus.setBackground(Color.red);
			connectionStatus.setText("Disconnected");
		}
	}
	
	public void setScreenName(String theScreenName) {
		this.screenName.setText(theScreenName);
	}
	
	public void setIpAddress(String theIpAddress) {
		this.localIpAddressTextField.setText(theIpAddress);
	}
	
	public void setGamePort(String theGamePort) {
		this.gamePortTextField.setText(theGamePort);
	}
	
	public void setChatPort(String theChatPort) {
		this.chatPortTextField.setText(theChatPort);
	}
	
	public String getServerIpAddress() {
		return serverIpAddressTextField.getText();
	}
	
	public void setServerIpAddress(String theAddress) {
		this.serverIpAddressTextField.setText(theAddress);
	}
	
	public String getPlayerId() {
		return playerIdTextField.getText();
	}
	
	public String getPassword() {
		return passwordTextField.getPassword().toString();
	}
	
	Action updateButtonClicked = new AbstractAction() {
		/**
		 * 
		 */
		private static final long serialVersionUID = 1L;

		@Override
		public void actionPerformed(ActionEvent e) {
			System.out.println("==> InfoPanel.java ==> --Update request button clicked--");
			boundPlayer.setScreenName(screenName.getText());
		}
		
	};
	
	Action registerButtonClicked = new AbstractAction() {
		/**
		 * 
		 */
		private static final long serialVersionUID = 1L;

		@Override
		public void actionPerformed(ActionEvent e) {
			boundRegPlayerPanel.setVisible(true);
		}
		
	};
	
	Action connectButtonClicked = new AbstractAction() {
		/**
		 * 
		 */
		private static final long serialVersionUID = 1L;

		@Override
		public void actionPerformed(ActionEvent e) {
			boundPlayer.Login(getServerIpAddress(),getScreenName().getText(),getPassword());
		}
		
	};

}
